package org.javaexpert.spaces.masterworker;

import static org.javaexpert.spaces.util.SpaceUtils.findSpace;
import static org.javaexpert.spaces.util.SpaceUtils.findTransactionManager;
import org.javaexpert.spaces.util.TransactionTemplate;

/**
 * Created by IntelliJ IDEA.
 * User: piotrga
 * Date: Dec 18, 2007
 * Time: 10:50:04 PM
 * To change this template use File | Settings | File Templates.
 */
public class StatTool {
    public static void main(String[] args) throws Exception {
        TaskMonitor taskBag = new TaskMonitor(findSpace("myspace", "localhost"), new TransactionTemplate(findTransactionManager("localhost")), "bag1");
        for (TaskStatusData s : taskBag.taskStatuses()) {
            System.out.println(s.toString());
        }
    }
}
